package com.decorate.askQuestion;

public class AmericaCoffee extends Drink {
    // 咖啡自己的价格
    private double coffeePrice = 15;
    // 牛奶小料的价格
    private double milkPrice = 2.5;
    // 放糖小料的价格
    private double sugerPrice = 2;

    @Override
    public double cost() {
        return getMilk() * milkPrice + getSuger() * sugerPrice + coffeePrice;
    }
}
